package org.flowers.unbeaten.logging.aop.annotation;

import org.flowers.unbeaten.logging.aop.enums.BusinessType;

import java.lang.annotation.*;

/**
 * @description 日志注释
 * @author RyanWang
 * @date 2021-08-02 17:17:51
 * @version 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
public @interface Logging {

    /**
     * 默认无参输入
     * @return
     */
    String value() default "暂无参数";

    /**
     * 默认输入
     * @return
     */
    String title() default "暂无标题";

    /**
     * 默认输入
     * @return
     */
    String describe() default "暂无描述";

    /**
     * 业务类型  默认Query
     * @return
     */
    BusinessType type() default BusinessType.QUERY;

}
